﻿using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Collections.Generic;
using System.Text;

namespace McePicasa
{
    class Log
    {
        private Log() { }//For FxCop only

        public static void LogIt(string log)
        {
            System.Diagnostics.Debug.WriteLine("McePicasa: " + log);
        }

        [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        public static void LogIt(string format, params object[] args)
        {
            LogIt(String.Format(CultureInfo.CurrentCulture, format, args));
        }

        public static void LogIt(Exception e)
        {
            System.Diagnostics.Debug.WriteLine("McePicasa: " + e.Message + "\n" + e.StackTrace);
        }
    }
}
